import modal from "../components/modal"
export default {
    components: {
        modal
    },
    data() {
        return {
            visible: false
        }
    },
    methods: {
        showModal() {
            this.visible = true;
        },
        //模态框点击确定按钮的处理函数
        cancel() {
            this.visible = false;
        },
        //模态框点击取消按钮触发的事件处理函数
        confirm() {
            this.visible = false
        }
    }
}